package com.hospital.common.enums.payment.module;

/**
 * 订单类型枚举
 * <br>
 * 0: 挂号订单
 * 1: 诊疗订单
 * 2: 在线诊疗订单
 * @author yhn
 * @version 1.0
 */
public enum OrderType {
    REGISTRATION(0),
    DIAGNOSIS(1),
    ONLINE_DIAGNOSIS(2);
    public final Integer value;
    OrderType(Integer value) {
        this.value = value;
    }
    public static OrderType valueOf(Integer value) {
        for (OrderType orderType : OrderType.values()) {
            if (orderType.value.equals(value)) {
                return orderType;
            }
        }
        return null;
    }
}
